package org.tea.inventory.model.vo;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author hanzy
 * @description
 * @date 2023年08月11日 15:00
 */
@Data
public class BaseActVo {

    @ApiModelProperty(value = "id")
    protected Long actId;

    @ApiModelProperty(value = "标题")
    protected String title;

    @ApiModelProperty(value = "大类")
    protected String category;

    @ApiModelProperty(value = "")
    protected String categoryName;

    @ApiModelProperty(value = "分类")
    protected String type;

    @ApiModelProperty(value = "")
    protected String typeName;

    @ApiModelProperty(value = "图片")
    protected String imgUrl;

    @ApiModelProperty(value = "内容")
    protected String content;

    @ApiModelProperty(value = "参与状态 0-全部 1-部分")
    protected Integer allType;

    @ApiModelProperty(value = "开始cron表达式")
    protected String startCron;

    @ApiModelProperty(value = "结束cron表达式")
    protected String endCron;

    @ApiModelProperty(value = "创建人")
    protected String creater;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    protected Date createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    protected Date modifyTime;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    protected Date startTime;


    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    protected Date endTime;

    /**
     * 状态 -1:删除, 0:下架, 1:上架
     */
    @ApiModelProperty(value = "状态 -1:删除, 0:关闭, 1:开启 2-开始 3-结束")
    protected Integer status;
    /**
     * 状态 -1:删除, 0:下架, 1:上架
     */
    @ApiModelProperty(value = "状态 -1:删除, 0:关闭, 1:开启 2-开始 3-结束")
    protected String statusName;


    @ApiModelProperty(value = "关联人Id集合")
    private List<String> participants;

    @ApiModelProperty(value = "活动位置：1-首页")
    private Integer actPosition; // banenr位置：1-首页

    @ApiModelProperty(value = "侧面图片")
    protected String sideImgUrl;

    @ApiModelProperty(value = "开奖cron表达式")
    protected String winningTimeCron;

    /**
     * 扣除积分
     */
    @ApiModelProperty(value = "扣除积分")
    private Long expenseIntegral;

    @ApiModelProperty(value = "是否限制")
    private Integer isLimit;

    @ApiModelProperty(value = "首页活动排序")
    private Integer positionSort;

}
